package com.kemai.common.utils

import android.content.Context
import android.widget.Toast

/**

 *@description:TODO
 * @author: zhaoshanshan
 * @date: 2022/10/3 9:25 上午

 */
class AppUtils(){

    private var ctx: Context? = null

    companion object{
       private var instance:AppUtils?=null;
       fun getInstance():AppUtils?{
          if(null==instance){
              synchronized(AppUtils::class){
                  if(instance==null){
                      instance =  AppUtils()
                  }

              }
          }
          return  instance

       }
    }
    fun setContext(context:Context){
        ctx = context
    }
    fun showToast(text:String){
        Toast.makeText(ctx,text,Toast.LENGTH_SHORT).show()
    }



}

